package com.itdaan.portal.business.service;

import java.util.List;

import com.itdaan.portal.business.domain.Role;
import com.itdaan.portal.common.exception.ServiceException;
/**
 * @author www.itdaan.com
 */
public interface RoleService {

	public void insert(Role role) throws ServiceException;
	
	public void deleteById(int id) throws ServiceException;
	
	public void deleteByIds(String ids) throws ServiceException;
	
	public void update(Role role) throws ServiceException;
	
	public Role getById(int id) throws ServiceException;
	
	public List<Role> getAll() throws ServiceException;
	
	public List<Role> getByUserId(int userId) throws ServiceException;
	
}
